<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/8/3
  Time: 20:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <%--因为updateUser.jsp是通过请求转发跳转页面 所以地址还是在之前的地址，下面的css的路径引入不用../--%>

    <link href="css/style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        function update(){
            window.location='ok.html';
        }

    </script>
</head>

<body>

<div class="place">
    <span>位置：</span>
    <ul class="placeul">
        <li><a href="#">用户管理</a></li>
        <li><a href="#">修改用户</a></li>
    </ul>
</div>

<div class="formbody">

    <div class="formtitle"><span>基本信息</span></div>
    <form action="userManager.do" method="post">
        <input type="hidden" name="flag" value="modifyUser">
        <input type="hidden" name="userid" value="${users.userid}">
    <ul class="forminfo">
        <%-- req.setAttribute("users",users);  key: users 所以values中的是users--%>
        <li><label>用户名</label><input name="username" type="text" class="dfinput" value="${users.username}"/> </li>
        <li>
            <label>性别</label><cite>
            <%--要用c标签--%>
            <c:choose>
                <c:when test="${users.usersex==1}">
                <input name="usersex" type="radio" value="1" checked="checked" />男&nbsp;&nbsp;&nbsp;&nbsp;
                <input name="usersex" type="radio" value="0" />女
                </c:when>
                <c:otherwise>
                <input name="usersex" type="radio" value="1" checked="checked" />男&nbsp;&nbsp;&nbsp;&nbsp;
                <input name="usersex" type="radio" value="0" />女
                </c:otherwise>
                </c:choose>

        </li>
        <li><label>手机号</label><input name="phonenumber" type="text" class="dfinput" value="${users.phonenumber}"/></li>
        <li><label>QQ号</label><input name="qqnumber" type="text" class="dfinput" value="${users.qqnumber}"/></li>
        <li><label>&nbsp;</label><input name="" onclick="update()" type="submit" class="btn" value="确认保存"/></li>
    </ul>
    </form>

</div>


</body>
</html>
